define(function (require, exports, module) {

	var util = require('util');
	require('bootstrap-validator');

	exports.run = function () {

		var ajaxForm = $('form');

		//表单验证
		ajaxForm.bootstrapValidator({
			fields : {
				authKey : {
					validators : {
						notEmpty : {
							message : '请填写账号'
						}
					}
				},
				password : {
					validators : {
						notEmpty : {
							message : '请填写密码'
						}
					}
				}
			}
		}).on('success.form.bv', function (e) {
			//表单提交
		});

	};

});